Skip to content

Conversation

@ArthurVasseur
Copy link
Contributor

  • Add EnumValue class to represent individual enum values with name, value, and index
  • Add Enumeration class inheriting from Object to represent enum instances
  • Add EnumerationClass inheriting from Class to manage enum metadata
  • Add EnumIterator and EnumIterable for range-based for loop support with structured bindings
  • Implement ToString/FromString for enum value conversion
  • Implement HasFlag/SetFlag/ToggleFlag for bitwise flag operations
  • Modify CppGenerator to generate EnumerationClass metadata for @cct::Enum marked enums
  • Add unit tests in Enum.cpp demonstrating all features

@ArthurVasseur ArthurVasseur force-pushed the feat/Enumeration branch 2 times, most recently from f2c9052 to ba75d72 Compare December 31, 2025 17:53
@codecov
Copy link

codecov bot commented Dec 31, 2025

Codecov Report

❌ Patch coverage is 84.32203% with 37 lines in your changes missing coverage. Please review.
✅ Project coverage is 71.24%. Comparing base (a3706c2) to head (8c3f141).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...rc/Concerto/Reflection/Enumeration/Enumeration.cpp 61.76% 11 Missing and 2 partials ⚠️
Src/Concerto/Reflection/EnumValue/EnumValue.cpp 16.66% 10 Missing ⚠️
...ncerto/Reflection/Enumeration/EnumerationClass.cpp 83.33% 2 Missing and 3 partials ⚠️
...rc/Concerto/Reflection/Enumeration/Enumeration.inl 50.00% 4 Missing ⚠️
...c/Concerto/Reflection/Enumeration/EnumIterator.inl 81.81% 2 Missing ⚠️
Src/Tests/Enum.cpp 97.67% 0 Missing and 2 partials ⚠️
...rto/PackageGenerator/CppGenerator/CppGenerator.cpp 96.77% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main       #7      +/-   ##
==========================================
+ Coverage   70.02%   71.24%   +1.21%     
==========================================
  Files          42       53      +11     
  Lines        2062     2274     +212     
  Branches      279      294      +15     
==========================================
+ Hits         1444     1620     +176     
- Misses        490      519      +29     
- Partials      128      135       +7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

- Add EnumValue class to represent individual enum values with name, value, and index
- Add Enumeration class inheriting from Object to represent enum instances
- Add EnumerationClass inheriting from Class to manage enum metadata
- Add EnumIterator and EnumIterable for range-based for loop support with structured bindings
- Implement ToString/FromString for enum value conversion
- Implement HasFlag/SetFlag/ToggleFlag for bitwise flag operations
- Modify CppGenerator to generate EnumerationClass metadata for @cct::Enum marked enums
- Add unit tests in Enum.cpp demonstrating all features
@ArthurVasseur ArthurVasseur merged commit be1875a into main Jan 1, 2026
48 checks passed
@ArthurVasseur ArthurVasseur deleted the feat/Enumeration branch January 1, 2026 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants